<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Unicode::UCD - Unicode character database - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/Unicode::UCD">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./Unicode::UCD.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/Unicode::UCD">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/Unicode::UCD">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/Unicode::UCD">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/Unicode::UCD">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/Unicode::UCD">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/Unicode::UCD">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/Unicode::UCD">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/Unicode::UCD">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/Unicode::UCD">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/Unicode::UCD">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/Unicode::UCD">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/Unicode::UCD">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/Unicode::UCD">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/Unicode::UCD">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/Unicode::UCD">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/Unicode::UCD">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/Unicode::UCD">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/Unicode::UCD">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/Unicode::UCD">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/Unicode::UCD">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/Unicode::UCD">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/Unicode::UCD">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/Unicode::UCD">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/Unicode::UCD">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/Unicode::UCD">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/Unicode::UCD">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/Unicode::UCD">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/Unicode::UCD">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/Unicode::UCD">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/Unicode::UCD">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/Unicode::UCD">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/Unicode::UCD">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/Unicode::UCD">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/Unicode::UCD">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/Unicode::UCD">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/Unicode::UCD">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/Unicode::UCD">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/Unicode::UCD">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/Unicode::UCD">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/Unicode::UCD">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/Unicode::UCD">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/Unicode::UCD">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/Unicode::UCD">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/Unicode::UCD">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/Unicode::UCD">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/Unicode::UCD">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/Unicode::UCD">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/Unicode::UCD">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/Unicode::UCD">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/Unicode::UCD">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/Unicode::UCD">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/Unicode::UCD">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/Unicode::UCD">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/Unicode::UCD">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/Unicode::UCD">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/Unicode::UCD">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/Unicode::UCD">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/Unicode::UCD">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/Unicode::UCD">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/Unicode::UCD">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/Unicode::UCD">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/Unicode::UCD">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/Unicode::UCD">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/Unicode::UCD">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/Unicode::UCD">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/Unicode::UCD">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/Unicode::UCD">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/Unicode::UCD">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/Unicode::UCD">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/Unicode::UCD">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/Unicode::UCD">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/Unicode::UCD">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/Unicode::UCD">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/Unicode::UCD">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/Unicode::UCD">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/Unicode::UCD">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/Unicode::UCD">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/Unicode::UCD">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/Unicode::UCD">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/Unicode::UCD">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./Unicode::UCD.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/Unicode::UCD">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/Unicode::UCD">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/Unicode::UCD">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/Unicode::UCD">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/Unicode::UCD">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/Unicode::UCD">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/Unicode::UCD">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/Unicode::UCD">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/Unicode::UCD">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/Unicode::UCD">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/Unicode::UCD">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/Unicode::UCD">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/Unicode::UCD">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/Unicode::UCD">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/Unicode::UCD">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/Unicode::UCD">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/Unicode::UCD">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/Unicode::UCD">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/Unicode::UCD">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/Unicode::UCD">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/Unicode::UCD">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/Unicode::UCD">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/Unicode::UCD">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/Unicode::UCD">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/Unicode::UCD">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/Unicode::UCD">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/Unicode::UCD">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/Unicode::UCD">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/Unicode::UCD">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/Unicode::UCD">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/Unicode::UCD">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/Unicode::UCD">5.35.1</a>
          <a class="dropdown-item active" href="./Unicode::UCD.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="./Unicode::UCD.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="./Unicode::UCD.html">Unicode::UCD</a>
          <div id="more">
            (<a href="./Unicode::UCD.txt">source</a>,
            <a href="https://metacpan.org/pod/Unicode::UCD">CPAN</a>)
          </div>
            <div id="moduleversion">version 0.75</div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#SYNOPSIS">SYNOPSIS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#DESCRIPTION">DESCRIPTION</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#code-point-argument">code point argument</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#charinfo()">charinfo()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#charprop()">charprop()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#charprops_all()">charprops_all()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#charblock()">charblock()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#charscript()">charscript()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#charblocks()">charblocks()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#charscripts()">charscripts()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#charinrange()">charinrange()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#general_categories()">general_categories()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#bidi_types()">bidi_types()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#compexcl()">compexcl()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#casefold()">casefold()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#all_casefolds()">all_casefolds()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#casespec()">casespec()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#namedseq()">namedseq()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#num()">num()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#prop_aliases()">prop_aliases()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#prop_values()">prop_values()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#prop_value_aliases()">prop_value_aliases()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#prop_invlist()">prop_invlist()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#prop_invmap()">prop_invmap()</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#Getting-every-available-name">Getting every available name</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#search_invlist()">search_invlist()</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#Unicode::UCD::UnicodeVersion">Unicode::UCD::UnicodeVersion</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#Blocks-versus-Scripts">Blocks versus Scripts</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#Matching-Scripts-and-Blocks">Matching Scripts and Blocks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#Old-style-versus-new-style-block-names">Old-style versus new-style block names</a>
              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#Use-with-older-Unicode-versions">Use with older Unicode versions</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="./Unicode::UCD.html#AUTHOR">AUTHOR</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="./Unicode::UCD.html#NAME">#</a>NAME</h1>

<p>Unicode::UCD - Unicode character database</p>

<h1 id="SYNOPSIS"><a class="permalink" href="./Unicode::UCD.html#SYNOPSIS">#</a>SYNOPSIS</h1>

<pre><code>use Unicode::UCD &#39;charinfo&#39;;
my $charinfo   = charinfo($codepoint);

use Unicode::UCD &#39;charprop&#39;;
my $value  = charprop($codepoint, $property);

use Unicode::UCD &#39;charprops_all&#39;;
my $all_values_hash_ref = charprops_all($codepoint);

use Unicode::UCD &#39;casefold&#39;;
my $casefold = casefold($codepoint);

use Unicode::UCD &#39;all_casefolds&#39;;
my $all_casefolds_ref = all_casefolds();

use Unicode::UCD &#39;casespec&#39;;
my $casespec = casespec($codepoint);

use Unicode::UCD &#39;charblock&#39;;
my $charblock  = charblock($codepoint);

use Unicode::UCD &#39;charscript&#39;;
my $charscript = charscript($codepoint);

use Unicode::UCD &#39;charblocks&#39;;
my $charblocks = charblocks();

use Unicode::UCD &#39;charscripts&#39;;
my $charscripts = charscripts();

use Unicode::UCD qw(charscript charinrange);
my $range = charscript($script);
print &quot;looks like $script\n&quot; if charinrange($range, $codepoint);

use Unicode::UCD qw(general_categories bidi_types);
my $categories = general_categories();
my $types = bidi_types();

use Unicode::UCD &#39;prop_aliases&#39;;
my @space_names = prop_aliases(&quot;space&quot;);

use Unicode::UCD &#39;prop_value_aliases&#39;;
my @gc_punct_names = prop_value_aliases(&quot;Gc&quot;, &quot;Punct&quot;);

use Unicode::UCD &#39;prop_values&#39;;
my @all_EA_short_names = prop_values(&quot;East_Asian_Width&quot;);

use Unicode::UCD &#39;prop_invlist&#39;;
my @puncts = prop_invlist(&quot;gc=punctuation&quot;);

use Unicode::UCD &#39;prop_invmap&#39;;
my ($list_ref, $map_ref, $format, $missing)
                                  = prop_invmap(&quot;General Category&quot;);

use Unicode::UCD &#39;search_invlist&#39;;
my $index = search_invlist(\@invlist, $code_point);

# The following function should be used only internally in
# implementations of the Unicode Normalization Algorithm, and there
# are better choices than it.
use Unicode::UCD &#39;compexcl&#39;;
my $compexcl = compexcl($codepoint);

use Unicode::UCD &#39;namedseq&#39;;
my $namedseq = namedseq($named_sequence_name);

my $unicode_version = Unicode::UCD::UnicodeVersion();

my $convert_to_numeric =
          Unicode::UCD::num(&quot;\N{RUMI DIGIT ONE}\N{RUMI DIGIT TWO}&quot;);</code></pre>

<h1 id="DESCRIPTION"><a class="permalink" href="./Unicode::UCD.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>The Unicode::UCD module offers a series of functions that provide a simple interface to the Unicode Character Database.</p>

<h2 id="code-point-argument"><a class="permalink" href="./Unicode::UCD.html#code-point-argument">#</a><a id="code3"></a>code point argument</h2>

<p>Some of the functions are called with a <i>code point argument</i>, which is either a decimal or a hexadecimal scalar designating a code point in the platform&#39;s native character set (extended to Unicode), or a string containing <code>U+</code> followed by hexadecimals designating a Unicode code point. A leading 0 will force a hexadecimal interpretation, as will a hexadecimal digit that isn&#39;t a decimal digit.</p>

<p>Examples:</p>

<pre><code class="plaintext">223     # Decimal 223 in native character set
0223    # Hexadecimal 223, native (= 547 decimal)
0xDF    # Hexadecimal DF, native (= 223 decimal)
&#39;0xDF&#39;  # String form of hexadecimal (= 223 decimal)
&#39;U+DF&#39;  # Hexadecimal DF, in Unicode&#39;s character set
                          (= LATIN SMALL LETTER SHARP S)</code></pre>

<p>Note that the largest code point in Unicode is U+10FFFF.</p>

<h2 id="charinfo()"><a class="permalink" href="./Unicode::UCD.html#charinfo()">#</a><a id="charinfo"></a><b>charinfo()</b></h2>

<pre><code>use Unicode::UCD &#39;charinfo&#39;;

my $charinfo = charinfo(0x41);</code></pre>

<p>This returns information about the input <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a> as a reference to a hash of fields as defined by the Unicode standard. If the <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a> is not assigned in the standard (i.e., has the general category <code>Cn</code> meaning <code>Unassigned</code>) or is a non-character (meaning it is guaranteed to never be assigned in the standard), <code>undef</code> is returned.</p>

<p>Fields that aren&#39;t applicable to the particular code point argument exist in the returned hash, and are empty.</p>

<p>For results that are less &quot;raw&quot; than this function returns, or to get the values for any property, not just the few covered by this function, use the <a href="./Unicode::UCD.html#charprop%28%29">&quot;charprop()&quot;</a> function.</p>

<p>The keys in the hash with the meanings of their values are:</p>

<dl>

<dt id="code"><a class="permalink" href="./Unicode::UCD.html#code">#</a><b>code</b></dt>
<dd>

<p>the input native <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a> expressed in hexadecimal, with leading zeros added if necessary to make it contain at least four hexdigits</p>

</dd>
<dt id="name"><a class="permalink" href="./Unicode::UCD.html#name">#</a><b>name</b></dt>
<dd>

<p>name of <i>code</i>, all IN UPPER CASE. Some control-type code points do not have names. This field will be empty for <code>Surrogate</code> and <code>Private Use</code> code points, and for the others without a name, it will contain a description enclosed in angle brackets, like <code>&lt;control&gt;</code>.</p>

</dd>
<dt id="category"><a class="permalink" href="./Unicode::UCD.html#category">#</a><b>category</b></dt>
<dd>

<p>The short name of the general category of <i>code</i>. This will match one of the keys in the hash returned by <a href="./Unicode::UCD.html#general_categories%28%29">&quot;general_categories()&quot;</a>.</p>

<p>The <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> function can be used to get all the synonyms of the category name.</p>

</dd>
<dt id="combining"><a class="permalink" href="./Unicode::UCD.html#combining">#</a><b>combining</b></dt>
<dd>

<p>the combining class number for <i>code</i> used in the Canonical Ordering Algorithm. For Unicode 5.1, this is described in Section 3.11 <code>Canonical Ordering Behavior</code> available at <a href="http://www.unicode.org/versions/Unicode5.1.0/">http://www.unicode.org/versions/Unicode5.1.0/</a></p>

<p>The <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> function can be used to get all the synonyms of the combining class number.</p>

</dd>
<dt id="bidi"><a class="permalink" href="./Unicode::UCD.html#bidi">#</a><b>bidi</b></dt>
<dd>

<p>bidirectional type of <i>code</i>. This will match one of the keys in the hash returned by <a href="./Unicode::UCD.html#bidi_types%28%29">&quot;bidi_types()&quot;</a>.</p>

<p>The <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> function can be used to get all the synonyms of the bidi type name.</p>

</dd>
<dt id="decomposition"><a class="permalink" href="./Unicode::UCD.html#decomposition">#</a><b>decomposition</b></dt>
<dd>

<p>is empty if <i>code</i> has no decomposition; or is one or more codes (separated by spaces) that, taken in order, represent a decomposition for <i>code</i>. Each has at least four hexdigits. The codes may be preceded by a word enclosed in angle brackets, then a space, like <code>&lt;compat&gt; </code>, giving the type of decomposition</p>

<p>This decomposition may be an intermediate one whose components are also decomposable. Use <a href="./Unicode::Normalize.html">Unicode::Normalize</a> to get the final decomposition in one step.</p>

</dd>
<dt id="decimal"><a class="permalink" href="./Unicode::UCD.html#decimal">#</a><b>decimal</b></dt>
<dd>

<p>if <i>code</i> represents a decimal digit this is its integer numeric value</p>

</dd>
<dt id="digit"><a class="permalink" href="./Unicode::UCD.html#digit">#</a><b>digit</b></dt>
<dd>

<p>if <i>code</i> represents some other digit-like number, this is its integer numeric value</p>

</dd>
<dt id="numeric"><a class="permalink" href="./Unicode::UCD.html#numeric">#</a><b>numeric</b></dt>
<dd>

<p>if <i>code</i> represents a whole or rational number, this is its numeric value. Rational values are expressed as a string like <code>1/4</code>.</p>

</dd>
<dt id="mirrored"><a class="permalink" href="./Unicode::UCD.html#mirrored">#</a><b>mirrored</b></dt>
<dd>

<p><code>Y</code> or <code>N</code> designating if <i>code</i> is mirrored in bidirectional text</p>

</dd>
<dt id="unicode10"><a class="permalink" href="./Unicode::UCD.html#unicode10">#</a><b>unicode10</b></dt>
<dd>

<p>name of <i>code</i> in the Unicode 1.0 standard if one existed for this code point and is different from the current name</p>

</dd>
<dt id="comment"><a class="permalink" href="./Unicode::UCD.html#comment">#</a><b>comment</b></dt>
<dd>

<p>As of Unicode 6.0, this is always empty.</p>

</dd>
<dt id="upper"><a class="permalink" href="./Unicode::UCD.html#upper">#</a><b>upper</b></dt>
<dd>

<p>is, if non-empty, the uppercase mapping for <i>code</i> expressed as at least four hexdigits. This indicates that the full uppercase mapping is a single character, and is identical to the simple (single-character only) mapping. When this field is empty, it means that the simple uppercase mapping is <i>code</i> itself; you&#39;ll need some other means, (like <a href="./Unicode::UCD.html#charprop%28%29">&quot;charprop()&quot;</a> or <a href="./Unicode::UCD.html#casespec%28%29">&quot;casespec()&quot;</a> to get the full mapping.</p>

</dd>
<dt id="lower"><a class="permalink" href="./Unicode::UCD.html#lower">#</a><b>lower</b></dt>
<dd>

<p>is, if non-empty, the lowercase mapping for <i>code</i> expressed as at least four hexdigits. This indicates that the full lowercase mapping is a single character, and is identical to the simple (single-character only) mapping. When this field is empty, it means that the simple lowercase mapping is <i>code</i> itself; you&#39;ll need some other means, (like <a href="./Unicode::UCD.html#charprop%28%29">&quot;charprop()&quot;</a> or <a href="./Unicode::UCD.html#casespec%28%29">&quot;casespec()&quot;</a> to get the full mapping.</p>

</dd>
<dt id="title"><a class="permalink" href="./Unicode::UCD.html#title">#</a><b>title</b></dt>
<dd>

<p>is, if non-empty, the titlecase mapping for <i>code</i> expressed as at least four hexdigits. This indicates that the full titlecase mapping is a single character, and is identical to the simple (single-character only) mapping. When this field is empty, it means that the simple titlecase mapping is <i>code</i> itself; you&#39;ll need some other means, (like <a href="./Unicode::UCD.html#charprop%28%29">&quot;charprop()&quot;</a> or <a href="./Unicode::UCD.html#casespec%28%29">&quot;casespec()&quot;</a> to get the full mapping.</p>

</dd>
<dt id="block"><a class="permalink" href="./Unicode::UCD.html#block">#</a><b>block</b></dt>
<dd>

<p>the block <i>code</i> belongs to (used in <code>\p{Blk=...}</code>). The <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> function can be used to get all the synonyms of the block name.</p>

<p>See <a href="./Unicode::UCD.html#Blocks-versus-Scripts">&quot;Blocks versus Scripts&quot;</a>.</p>

</dd>
<dt id="script"><a class="permalink" href="./Unicode::UCD.html#script">#</a><b>script</b></dt>
<dd>

<p>the script <i>code</i> belongs to. The <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> function can be used to get all the synonyms of the script name. Note that this is the older &quot;Script&quot; property value, and not the improved &quot;Script_Extensions&quot; value.</p>

<p>See <a href="./Unicode::UCD.html#Blocks-versus-Scripts">&quot;Blocks versus Scripts&quot;</a>.</p>

</dd>
</dl>

<p>Note that you cannot do (de)composition and casing based solely on the <i>decomposition</i>, <i>combining</i>, <i>lower</i>, <i>upper</i>, and <i>title</i> fields; you will need also the <a href="./Unicode::UCD.html#casespec%28%29">&quot;casespec()&quot;</a> function and the <code>Composition_Exclusion</code> property. (Or you could just use the <a href="perlfunc.html#lc">lc()</a>, <a href="perlfunc.html#uc">uc()</a>, and <a href="perlfunc.html#ucfirst">ucfirst()</a> functions, and the <a href="./Unicode::Normalize.html">Unicode::Normalize</a> module.)</p>

<h2 id="charprop()"><a class="permalink" href="./Unicode::UCD.html#charprop()">#</a><a id="charprop"></a><b>charprop()</b></h2>

<pre><code>  use Unicode::UCD &#39;charprop&#39;;

  print charprop(0x41, &quot;Gc&quot;), &quot;\n&quot;;
  print charprop(0x61, &quot;General_Category&quot;), &quot;\n&quot;;

prints
  Lu
  Ll</code></pre>

<p>This returns the value of the Unicode property given by the second parameter for the <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a> given by the first.</p>

<p>The passed-in property may be specified as any of the synonyms returned by <a href="./Unicode::UCD.html#prop_aliases%28%29">&quot;prop_aliases()&quot;</a>.</p>

<p>The return value is always a scalar, either a string or a number. For properties where there are synonyms for the values, the synonym returned by this function is the longest, most descriptive form, the one returned by <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> when called in a scalar context. Of course, you can call <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> on the result to get other synonyms.</p>

<p>The return values are more &quot;cooked&quot; than the <a href="./Unicode::UCD.html#charinfo%28%29">&quot;charinfo()&quot;</a> ones. For example, the <code>&quot;uc&quot;</code> property value is the actual string containing the full uppercase mapping of the input code point. You have to go to extra trouble with <code>charinfo</code> to get this value from its <code>upper</code> hash element when the full mapping differs from the simple one.</p>

<p>Special note should be made of the return values for a few properties:</p>

<dl>

<dt id="Block"><a class="permalink" href="./Unicode::UCD.html#Block">#</a>Block</dt>
<dd>

<p>The value returned is the new-style (see <a href="./Unicode::UCD.html#Old-style-versus-new-style-block-names">&quot;Old-style versus new-style block names&quot;</a>).</p>

</dd>
<dt id="Decomposition_Mapping"><a class="permalink" href="./Unicode::UCD.html#Decomposition_Mapping">#</a>Decomposition_Mapping</dt>
<dd>

<p>Like <a href="./Unicode::UCD.html#charinfo%28%29">&quot;charinfo()&quot;</a>, the result may be an intermediate decomposition whose components are also decomposable. Use <a href="./Unicode::Normalize.html">Unicode::Normalize</a> to get the final decomposition in one step.</p>

<p>Unlike <a href="./Unicode::UCD.html#charinfo%28%29">&quot;charinfo()&quot;</a>, this does not include the decomposition type. Use the <code>Decomposition_Type</code> property to get that.</p>

</dd>
<dt id="Name_Alias"><a class="permalink" href="./Unicode::UCD.html#Name_Alias">#</a>Name_Alias</dt>
<dd>

<p>If the input code point&#39;s name has more than one synonym, they are returned joined into a single comma-separated string.</p>

</dd>
<dt id="Numeric_Value"><a class="permalink" href="./Unicode::UCD.html#Numeric_Value">#</a>Numeric_Value</dt>
<dd>

<p>If the result is a fraction, it is converted into a floating point number to the accuracy of your platform.</p>

</dd>
<dt id="Script_Extensions"><a class="permalink" href="./Unicode::UCD.html#Script_Extensions">#</a>Script_Extensions</dt>
<dd>

<p>If the result is multiple script names, they are returned joined into a single comma-separated string.</p>

</dd>
</dl>

<p>When called with a property that is a Perl extension that isn&#39;t expressible in a compound form, this function currently returns <code>undef</code>, as the only two possible values are <i>true</i> or <i>false</i> (1 or 0 I suppose). This behavior may change in the future, so don&#39;t write code that relies on it. <code>Present_In</code> is a Perl extension that is expressible in a bipartite or compound form (for example, <code>\p{Present_In=4.0}</code>), so <code>charprop</code> accepts it. But <code>Any</code> is a Perl extension that isn&#39;t expressible that way, so <code>charprop</code> returns <code>undef</code> for it. Also <code>charprop</code> returns <code>undef</code> for all Perl extensions that are internal-only.</p>

<h2 id="charprops_all()"><a class="permalink" href="./Unicode::UCD.html#charprops_all()">#</a><a id="charprops_all"></a><b>charprops_all()</b></h2>

<pre><code>use Unicode::UCD &#39;charprops_all&#39;;

my $%properties_of_A_hash_ref = charprops_all(&quot;U+41&quot;);</code></pre>

<p>This returns a reference to a hash whose keys are all the distinct Unicode (no Perl extension) properties, and whose values are the respective values for those properties for the input <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a>.</p>

<p>Each key is the property name in its longest, most descriptive form. The values are what <a href="./Unicode::UCD.html#charprop%28%29">&quot;charprop()&quot;</a> would return.</p>

<p>This function is expensive in time and memory.</p>

<h2 id="charblock()"><a class="permalink" href="./Unicode::UCD.html#charblock()">#</a><a id="charblock"></a><b>charblock()</b></h2>

<pre><code>use Unicode::UCD &#39;charblock&#39;;

my $charblock = charblock(0x41);
my $charblock = charblock(1234);
my $charblock = charblock(0x263a);
my $charblock = charblock(&quot;U+263a&quot;);

my $range     = charblock(&#39;Armenian&#39;);</code></pre>

<p>With a <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a> <code>charblock()</code> returns the <i>block</i> the code point belongs to, e.g. <code>Basic Latin</code>. The old-style block name is returned (see <a href="./Unicode::UCD.html#Old-style-versus-new-style-block-names">&quot;Old-style versus new-style block names&quot;</a>). The <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> function can be used to get all the synonyms of the block name.</p>

<p>If the code point is unassigned, this returns the block it would belong to if it were assigned. (If the Unicode version being used is so early as to not have blocks, all code points are considered to be in <code>No_Block</code>.)</p>

<p>See also <a href="./Unicode::UCD.html#Blocks-versus-Scripts">&quot;Blocks versus Scripts&quot;</a>.</p>

<p>If supplied with an argument that can&#39;t be a code point, <code>charblock()</code> tries to do the opposite and interpret the argument as an old-style block name. On an ASCII platform, the return value is a <i>range set</i> with one range: an anonymous array with a single element that consists of another anonymous array whose first element is the first code point in the block, and whose second element is the final code point in the block. On an EBCDIC platform, the first two Unicode blocks are not contiguous. Their range sets are lists containing <i>start-of-range</i>, <i>end-of-range</i> code point pairs. You can test whether a code point is in a range set using the <a href="./Unicode::UCD.html#charinrange%28%29">&quot;charinrange()&quot;</a> function. (To be precise, each <i>range set</i> contains a third array element, after the range boundary ones: the old_style block name.)</p>

<p>If the argument to <code>charblock()</code> is not a known block, <code>undef</code> is returned.</p>

<h2 id="charscript()"><a class="permalink" href="./Unicode::UCD.html#charscript()">#</a><a id="charscript"></a><b>charscript()</b></h2>

<pre><code>use Unicode::UCD &#39;charscript&#39;;

my $charscript = charscript(0x41);
my $charscript = charscript(1234);
my $charscript = charscript(&quot;U+263a&quot;);

my $range      = charscript(&#39;Thai&#39;);</code></pre>

<p>With a <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a>, <code>charscript()</code> returns the <i>script</i> the code point belongs to, e.g., <code>Latin</code>, <code>Greek</code>, <code>Han</code>. If the code point is unassigned or the Unicode version being used is so early that it doesn&#39;t have scripts, this function returns <code>&quot;Unknown&quot;</code>. The <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> function can be used to get all the synonyms of the script name.</p>

<p>Note that the Script_Extensions property is an improved version of the Script property, and you should probably be using that instead, with the <a href="./Unicode::UCD.html#charprop%28%29">&quot;charprop()&quot;</a> function.</p>

<p>If supplied with an argument that can&#39;t be a code point, charscript() tries to do the opposite and interpret the argument as a script name. The return value is a <i>range set</i>: an anonymous array of arrays that contain <i>start-of-range</i>, <i>end-of-range</i> code point pairs. You can test whether a code point is in a range set using the <a href="./Unicode::UCD.html#charinrange%28%29">&quot;charinrange()&quot;</a> function. (To be precise, each <i>range set</i> contains a third array element, after the range boundary ones: the script name.)</p>

<p>If the <code>charscript()</code> argument is not a known script, <code>undef</code> is returned.</p>

<p>See also <a href="./Unicode::UCD.html#Blocks-versus-Scripts">&quot;Blocks versus Scripts&quot;</a>.</p>

<h2 id="charblocks()"><a class="permalink" href="./Unicode::UCD.html#charblocks()">#</a><a id="charblocks"></a><b>charblocks()</b></h2>

<pre><code>use Unicode::UCD &#39;charblocks&#39;;

my $charblocks = charblocks();</code></pre>

<p><code>charblocks()</code> returns a reference to a hash with the known block names as the keys, and the code point ranges (see <a href="./Unicode::UCD.html#charblock%28%29">&quot;charblock()&quot;</a>) as the values.</p>

<p>The names are in the old-style (see <a href="./Unicode::UCD.html#Old-style-versus-new-style-block-names">&quot;Old-style versus new-style block names&quot;</a>).</p>

<p><a href="./Unicode::UCD.html#prop_invmap%28%29">prop_invmap(&quot;block&quot;)</a> can be used to get this same data in a different type of data structure.</p>

<p><a href="./Unicode::UCD.html#prop_values%28%29">prop_values(&quot;Block&quot;)</a> can be used to get all the known new-style block names as a list, without the code point ranges.</p>

<p>See also <a href="./Unicode::UCD.html#Blocks-versus-Scripts">&quot;Blocks versus Scripts&quot;</a>.</p>

<h2 id="charscripts()"><a class="permalink" href="./Unicode::UCD.html#charscripts()">#</a><a id="charscripts"></a><b>charscripts()</b></h2>

<pre><code>use Unicode::UCD &#39;charscripts&#39;;

my $charscripts = charscripts();</code></pre>

<p><code>charscripts()</code> returns a reference to a hash with the known script names as the keys, and the code point ranges (see <a href="./Unicode::UCD.html#charscript%28%29">&quot;charscript()&quot;</a>) as the values.</p>

<p><a href="./Unicode::UCD.html#prop_invmap%28%29">prop_invmap(&quot;script&quot;)</a> can be used to get this same data in a different type of data structure. Since the Script_Extensions property is an improved version of the Script property, you should instead use <a href="./Unicode::UCD.html#prop_invmap%28%29">prop_invmap(&quot;scx&quot;)</a>.</p>

<p><a href="./Unicode::UCD.html#prop_values%28%29"><code>prop_values(&quot;Script&quot;)</code></a> can be used to get all the known script names as a list, without the code point ranges.</p>

<p>See also <a href="./Unicode::UCD.html#Blocks-versus-Scripts">&quot;Blocks versus Scripts&quot;</a>.</p>

<h2 id="charinrange()"><a class="permalink" href="./Unicode::UCD.html#charinrange()">#</a><a id="charinrange"></a><b>charinrange()</b></h2>

<p>In addition to using the <code>\p{Blk=...}</code> and <code>\P{Blk=...}</code> constructs, you can also test whether a code point is in the <i>range</i> as returned by <a href="./Unicode::UCD.html#charblock%28%29">&quot;charblock()&quot;</a> and <a href="./Unicode::UCD.html#charscript%28%29">&quot;charscript()&quot;</a> or as the values of the hash returned by <a href="./Unicode::UCD.html#charblocks%28%29">&quot;charblocks()&quot;</a> and <a href="./Unicode::UCD.html#charscripts%28%29">&quot;charscripts()&quot;</a> by using <code>charinrange()</code>:</p>

<pre><code>use Unicode::UCD qw(charscript charinrange);

$range = charscript(&#39;Hiragana&#39;);
print &quot;looks like hiragana\n&quot; if charinrange($range, $codepoint);</code></pre>

<h2 id="general_categories()"><a class="permalink" href="./Unicode::UCD.html#general_categories()">#</a><a id="general_categories"></a><b>general_categories()</b></h2>

<pre><code>use Unicode::UCD &#39;general_categories&#39;;

my $categories = general_categories();</code></pre>

<p>This returns a reference to a hash which has short general category names (such as <code>Lu</code>, <code>Nd</code>, <code>Zs</code>, <code>S</code>) as keys and long names (such as <code>UppercaseLetter</code>, <code>DecimalNumber</code>, <code>SpaceSeparator</code>, <code>Symbol</code>) as values. The hash is reversible in case you need to go from the long names to the short names. The general category is the one returned from <a href="./Unicode::UCD.html#charinfo%28%29">&quot;charinfo()&quot;</a> under the <code>category</code> key.</p>

<p>The <a href="./Unicode::UCD.html#prop_values%28%29">&quot;prop_values()&quot;</a> and <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> functions can be used as an alternative to this function; the first returning a simple list of the short category names; and the second gets all the synonyms of a given category name.</p>

<h2 id="bidi_types()"><a class="permalink" href="./Unicode::UCD.html#bidi_types()">#</a><a id="bidi_types"></a><b>bidi_types()</b></h2>

<pre><code>use Unicode::UCD &#39;bidi_types&#39;;

my $categories = bidi_types();</code></pre>

<p>This returns a reference to a hash which has the short bidi (bidirectional) type names (such as <code>L</code>, <code>R</code>) as keys and long names (such as <code>Left-to-Right</code>, <code>Right-to-Left</code>) as values. The hash is reversible in case you need to go from the long names to the short names. The bidi type is the one returned from <a href="./Unicode::UCD.html#charinfo%28%29">&quot;charinfo()&quot;</a> under the <code>bidi</code> key. For the exact meaning of the various bidi classes the Unicode TR9 is recommended reading: <a href="http://www.unicode.org/reports/tr9/">http://www.unicode.org/reports/tr9/</a> (as of Unicode 5.0.0)</p>

<p>The <a href="./Unicode::UCD.html#prop_values%28%29">&quot;prop_values()&quot;</a> and <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> functions can be used as an alternative to this function; the first returning a simple list of the short bidi type names; and the second gets all the synonyms of a given bidi type name.</p>

<h2 id="compexcl()"><a class="permalink" href="./Unicode::UCD.html#compexcl()">#</a><a id="compexcl"></a><b>compexcl()</b></h2>

<p>WARNING: Unicode discourages the use of this function or any of the alternative mechanisms listed in this section (the documentation of <code>compexcl()</code>), except internally in implementations of the Unicode Normalization Algorithm. You should be using <a href="./Unicode::Normalize.html">Unicode::Normalize</a> directly instead of these. Using these will likely lead to half-baked results.</p>

<pre><code>use Unicode::UCD &#39;compexcl&#39;;

my $compexcl = compexcl(0x09dc);</code></pre>

<p>This routine returns <code>undef</code> if the Unicode version being used is so early that it doesn&#39;t have this property.</p>

<p><code>compexcl()</code> is included for backwards compatibility, but as of Perl 5.12 and more modern Unicode versions, for most purposes it is probably more convenient to use one of the following instead:</p>

<pre><code>my $compexcl = chr(0x09dc) =~ /\p{Comp_Ex};
my $compexcl = chr(0x09dc) =~ /\p{Full_Composition_Exclusion};</code></pre>

<p>or even</p>

<pre><code>my $compexcl = chr(0x09dc) =~ /\p{CE};
my $compexcl = chr(0x09dc) =~ /\p{Composition_Exclusion};</code></pre>

<p>The first two forms return <b>true</b> if the <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a> should not be produced by composition normalization. For the final two forms to return <b>true</b>, it is additionally required that this fact not otherwise be determinable from the Unicode data base.</p>

<p>This routine behaves identically to the final two forms. That is, it does not return <b>true</b> if the code point has a decomposition consisting of another single code point, nor if its decomposition starts with a code point whose combining class is non-zero. Code points that meet either of these conditions should also not be produced by composition normalization, which is probably why you should use the <code>Full_Composition_Exclusion</code> property instead, as shown above.</p>

<p>The routine returns <b>false</b> otherwise.</p>

<h2 id="casefold()"><a class="permalink" href="./Unicode::UCD.html#casefold()">#</a><a id="casefold"></a><b>casefold()</b></h2>

<pre><code>use Unicode::UCD &#39;casefold&#39;;

my $casefold = casefold(0xDF);
if (defined $casefold) {
    my @full_fold_hex = split / /, $casefold-&gt;{&#39;full&#39;};
    my $full_fold_string =
                join &quot;&quot;, map {chr(hex($_))} @full_fold_hex;
    my @turkic_fold_hex =
                    split / /, ($casefold-&gt;{&#39;turkic&#39;} ne &quot;&quot;)
                                    ? $casefold-&gt;{&#39;turkic&#39;}
                                    : $casefold-&gt;{&#39;full&#39;};
    my $turkic_fold_string =
                    join &quot;&quot;, map {chr(hex($_))} @turkic_fold_hex;
}
if (defined $casefold &amp;&amp; $casefold-&gt;{&#39;simple&#39;} ne &quot;&quot;) {
    my $simple_fold_hex = $casefold-&gt;{&#39;simple&#39;};
    my $simple_fold_string = chr(hex($simple_fold_hex));
}</code></pre>

<p>This returns the (almost) locale-independent case folding of the character specified by the <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a>. (Starting in Perl v5.16, the core function <code>fc()</code> returns the <code>full</code> mapping (described below) faster than this does, and for entire strings.)</p>

<p>If there is no case folding for the input code point, <code>undef</code> is returned.</p>

<p>If there is a case folding for that code point, a reference to a hash with the following fields is returned:</p>

<dl>

<dt id="code1"><a class="permalink" href="./Unicode::UCD.html#code1">#</a><b>code</b></dt>
<dd>

<p>the input native <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a> expressed in hexadecimal, with leading zeros added if necessary to make it contain at least four hexdigits</p>

</dd>
<dt id="full"><a class="permalink" href="./Unicode::UCD.html#full">#</a><b>full</b></dt>
<dd>

<p>one or more codes (separated by spaces) that, taken in order, give the code points for the case folding for <i>code</i>. Each has at least four hexdigits.</p>

</dd>
<dt id="simple"><a class="permalink" href="./Unicode::UCD.html#simple">#</a><b>simple</b></dt>
<dd>

<p>is empty, or is exactly one code with at least four hexdigits which can be used as an alternative case folding when the calling program cannot cope with the fold being a sequence of multiple code points. If <i>full</i> is just one code point, then <i>simple</i> equals <i>full</i>. If there is no single code point folding defined for <i>code</i>, then <i>simple</i> is the empty string. Otherwise, it is an inferior, but still better-than-nothing alternative folding to <i>full</i>.</p>

</dd>
<dt id="mapping"><a class="permalink" href="./Unicode::UCD.html#mapping">#</a><b>mapping</b></dt>
<dd>

<p>is the same as <i>simple</i> if <i>simple</i> is not empty, and it is the same as <i>full</i> otherwise. It can be considered to be the simplest possible folding for <i>code</i>. It is defined primarily for backwards compatibility.</p>

</dd>
<dt id="status"><a class="permalink" href="./Unicode::UCD.html#status">#</a><b>status</b></dt>
<dd>

<p>is <code>C</code> (for <code>common</code>) if the best possible fold is a single code point (<i>simple</i> equals <i>full</i> equals <i>mapping</i>). It is <code>S</code> if there are distinct folds, <i>simple</i> and <i>full</i> (<i>mapping</i> equals <i>simple</i>). And it is <code>F</code> if there is only a <i>full</i> fold (<i>mapping</i> equals <i>full</i>; <i>simple</i> is empty). Note that this describes the contents of <i>mapping</i>. It is defined primarily for backwards compatibility.</p>

<p>For Unicode versions between 3.1 and 3.1.1 inclusive, <i>status</i> can also be <code>I</code> which is the same as <code>C</code> but is a special case for dotted uppercase I and dotless lowercase i:</p>

<dl>

<dt id="*-If-you-use-this-I-mapping"><a class="permalink" href="./Unicode::UCD.html#*-If-you-use-this-I-mapping">#</a><a id="If-you-use-this-I-mapping"></a><b>*</b> If you use this <code>I</code> mapping</dt>
<dd>

<p>the result is case-insensitive, but dotless and dotted I&#39;s are not distinguished</p>

</dd>
<dt id="*-If-you-exclude-this-I-mapping"><a class="permalink" href="./Unicode::UCD.html#*-If-you-exclude-this-I-mapping">#</a><a id="If-you-exclude-this-I-mapping"></a><b>*</b> If you exclude this <code>I</code> mapping</dt>
<dd>

<p>the result is not fully case-insensitive, but dotless and dotted I&#39;s are distinguished</p>

</dd>
</dl>

</dd>
<dt id="turkic"><a class="permalink" href="./Unicode::UCD.html#turkic">#</a><b>turkic</b></dt>
<dd>

<p>contains any special folding for Turkic languages. For versions of Unicode starting with 3.2, this field is empty unless <i>code</i> has a different folding in Turkic languages, in which case it is one or more codes (separated by spaces) that, taken in order, give the code points for the case folding for <i>code</i> in those languages. Each code has at least four hexdigits. Note that this folding does not maintain canonical equivalence without additional processing.</p>

<p>For Unicode versions between 3.1 and 3.1.1 inclusive, this field is empty unless there is a special folding for Turkic languages, in which case <i>status</i> is <code>I</code>, and <i>mapping</i>, <i>full</i>, <i>simple</i>, and <i>turkic</i> are all equal.</p>

</dd>
</dl>

<p>Programs that want complete generality and the best folding results should use the folding contained in the <i>full</i> field. But note that the fold for some code points will be a sequence of multiple code points.</p>

<p>Programs that can&#39;t cope with the fold mapping being multiple code points can use the folding contained in the <i>simple</i> field, with the loss of some generality. In Unicode 5.1, about 7% of the defined foldings have no single code point folding.</p>

<p>The <i>mapping</i> and <i>status</i> fields are provided for backwards compatibility for existing programs. They contain the same values as in previous versions of this function.</p>

<p>Locale is not completely independent. The <i>turkic</i> field contains results to use when the locale is a Turkic language.</p>

<p>For more information about case mappings see <a href="http://www.unicode.org/unicode/reports/tr21">http://www.unicode.org/unicode/reports/tr21</a></p>

<h2 id="all_casefolds()"><a class="permalink" href="./Unicode::UCD.html#all_casefolds()">#</a><a id="all_casefolds"></a><b>all_casefolds()</b></h2>

<pre><code>use Unicode::UCD &#39;all_casefolds&#39;;

my $all_folds_ref = all_casefolds();
foreach my $char_with_casefold (sort { $a &lt;=&gt; $b }
                                keys %$all_folds_ref)
{
    printf &quot;%04X:&quot;, $char_with_casefold;
    my $casefold = $all_folds_ref-&gt;{$char_with_casefold};

    # Get folds for $char_with_casefold

    my @full_fold_hex = split / /, $casefold-&gt;{&#39;full&#39;};
    my $full_fold_string =
                join &quot;&quot;, map {chr(hex($_))} @full_fold_hex;
    print &quot; full=&quot;, join &quot; &quot;, @full_fold_hex;
    my @turkic_fold_hex =
                    split / /, ($casefold-&gt;{&#39;turkic&#39;} ne &quot;&quot;)
                                    ? $casefold-&gt;{&#39;turkic&#39;}
                                    : $casefold-&gt;{&#39;full&#39;};
    my $turkic_fold_string =
                    join &quot;&quot;, map {chr(hex($_))} @turkic_fold_hex;
    print &quot;; turkic=&quot;, join &quot; &quot;, @turkic_fold_hex;
    if (defined $casefold &amp;&amp; $casefold-&gt;{&#39;simple&#39;} ne &quot;&quot;) {
        my $simple_fold_hex = $casefold-&gt;{&#39;simple&#39;};
        my $simple_fold_string = chr(hex($simple_fold_hex));
        print &quot;; simple=$simple_fold_hex&quot;;
    }
    print &quot;\n&quot;;
}</code></pre>

<p>This returns all the case foldings in the current version of Unicode in the form of a reference to a hash. Each key to the hash is the decimal representation of a Unicode character that has a casefold to other than itself. The casefold of a semi-colon is itself, so it isn&#39;t in the hash; likewise for a lowercase &quot;a&quot;, but there is an entry for a capital &quot;A&quot;. The hash value for each key is another hash, identical to what is returned by <a href="./Unicode::UCD.html#casefold%28%29">&quot;casefold()&quot;</a> if called with that code point as its argument. So the value <code>all_casefolds()-&gt;{ord(&quot;A&quot;)}&#39;</code> is equivalent to <code>casefold(ord(&quot;A&quot;))</code>;</p>

<h2 id="casespec()"><a class="permalink" href="./Unicode::UCD.html#casespec()">#</a><a id="casespec"></a><b>casespec()</b></h2>

<pre><code>use Unicode::UCD &#39;casespec&#39;;

my $casespec = casespec(0xFB00);</code></pre>

<p>This returns the potentially locale-dependent case mappings of the <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a>. The mappings may be longer than a single code point (which the basic Unicode case mappings as returned by <a href="./Unicode::UCD.html#charinfo%28%29">&quot;charinfo()&quot;</a> never are).</p>

<p>If there are no case mappings for the <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a>, or if all three possible mappings (<i>lower</i>, <i>title</i> and <i>upper</i>) result in single code points and are locale independent and unconditional, <code>undef</code> is returned (which means that the case mappings, if any, for the code point are those returned by <a href="./Unicode::UCD.html#charinfo%28%29">&quot;charinfo()&quot;</a>).</p>

<p>Otherwise, a reference to a hash giving the mappings (or a reference to a hash of such hashes, explained below) is returned with the following keys and their meanings:</p>

<p>The keys in the bottom layer hash with the meanings of their values are:</p>

<dl>

<dt id="code2"><a class="permalink" href="./Unicode::UCD.html#code2">#</a><b>code</b></dt>
<dd>

<p>the input native <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a> expressed in hexadecimal, with leading zeros added if necessary to make it contain at least four hexdigits</p>

</dd>
<dt id="lower1"><a class="permalink" href="./Unicode::UCD.html#lower1">#</a><b>lower</b></dt>
<dd>

<p>one or more codes (separated by spaces) that, taken in order, give the code points for the lower case of <i>code</i>. Each has at least four hexdigits.</p>

</dd>
<dt id="title1"><a class="permalink" href="./Unicode::UCD.html#title1">#</a><b>title</b></dt>
<dd>

<p>one or more codes (separated by spaces) that, taken in order, give the code points for the title case of <i>code</i>. Each has at least four hexdigits.</p>

</dd>
<dt id="upper1"><a class="permalink" href="./Unicode::UCD.html#upper1">#</a><b>upper</b></dt>
<dd>

<p>one or more codes (separated by spaces) that, taken in order, give the code points for the upper case of <i>code</i>. Each has at least four hexdigits.</p>

</dd>
<dt id="condition"><a class="permalink" href="./Unicode::UCD.html#condition">#</a><b>condition</b></dt>
<dd>

<p>the conditions for the mappings to be valid. If <code>undef</code>, the mappings are always valid. When defined, this field is a list of conditions, all of which must be true for the mappings to be valid. The list consists of one or more <i>locales</i> (see below) and/or <i>contexts</i> (explained in the next paragraph), separated by spaces. (Other than as used to separate elements, spaces are to be ignored.) Case distinctions in the condition list are not significant. Conditions preceded by &quot;NON_&quot; represent the negation of the condition.</p>

<p>A <i>context</i> is one of those defined in the Unicode standard. For Unicode 5.1, they are defined in Section 3.13 <code>Default Case Operations</code> available at <a href="http://www.unicode.org/versions/Unicode5.1.0/">http://www.unicode.org/versions/Unicode5.1.0/</a>. These are for context-sensitive casing.</p>

</dd>
</dl>

<p>The hash described above is returned for locale-independent casing, where at least one of the mappings has length longer than one. If <code>undef</code> is returned, the code point may have mappings, but if so, all are length one, and are returned by <a href="./Unicode::UCD.html#charinfo%28%29">&quot;charinfo()&quot;</a>. Note that when this function does return a value, it will be for the complete set of mappings for a code point, even those whose length is one.</p>

<p>If there are additional casing rules that apply only in certain locales, an additional key for each will be defined in the returned hash. Each such key will be its locale name, defined as a 2-letter ISO 3166 country code, possibly followed by a &quot;_&quot; and a 2-letter ISO language code (possibly followed by a &quot;_&quot; and a variant code). You can find the lists of all possible locales, see <a href="./Locale::Country.html">Locale::Country</a> and <a href="./Locale::Language.html">Locale::Language</a>. (In Unicode 6.0, the only locales returned by this function are <code>lt</code>, <code>tr</code>, and <code>az</code>.)</p>

<p>Each locale key is a reference to a hash that has the form above, and gives the casing rules for that particular locale, which take precedence over the locale-independent ones when in that locale.</p>

<p>If the only casing for a code point is locale-dependent, then the returned hash will not have any of the base keys, like <code>code</code>, <code>upper</code>, etc., but will contain only locale keys.</p>

<p>For more information about case mappings see <a href="http://www.unicode.org/unicode/reports/tr21/">http://www.unicode.org/unicode/reports/tr21/</a></p>

<h2 id="namedseq()"><a class="permalink" href="./Unicode::UCD.html#namedseq()">#</a><a id="namedseq"></a><b>namedseq()</b></h2>

<pre><code>use Unicode::UCD &#39;namedseq&#39;;

my $namedseq = namedseq(&quot;KATAKANA LETTER AINU P&quot;);
my @namedseq = namedseq(&quot;KATAKANA LETTER AINU P&quot;);
my %namedseq = namedseq();</code></pre>

<p>If used with a single argument in a scalar context, returns the string consisting of the code points of the named sequence, or <code>undef</code> if no named sequence by that name exists. If used with a single argument in a list context, it returns the list of the ordinals of the code points.</p>

<p>If used with no arguments in a list context, it returns a hash with the names of all the named sequences as the keys and their sequences as strings as the values. Otherwise, it returns <code>undef</code> or an empty list depending on the context.</p>

<p>This function only operates on officially approved (not provisional) named sequences.</p>

<p>Note that as of Perl 5.14, <code>\N{KATAKANA LETTER AINU P}</code> will insert the named sequence into double-quoted strings, and <code>charnames::string_vianame(&quot;KATAKANA LETTER AINU P&quot;)</code> will return the same string this function does, but will also operate on character names that aren&#39;t named sequences, without you having to know which are which. See <a href="charnames.html">charnames</a>.</p>

<h2 id="num()"><a class="permalink" href="./Unicode::UCD.html#num()">#</a><a id="num"></a><b>num()</b></h2>

<pre><code>use Unicode::UCD &#39;num&#39;;

my $val = num(&quot;123&quot;);
my $one_quarter = num(&quot;\N{VULGAR FRACTION 1/4}&quot;);
my $val = num(&quot;12a&quot;, \$valid_length);  # $valid_length contains 2</code></pre>

<p><code>num()</code> returns the numeric value of the input Unicode string; or <code>undef</code> if it doesn&#39;t think the entire string has a completely valid, safe numeric value. If called with an optional second parameter, a reference to a scalar, <code>num()</code> will set the scalar to the length of any valid initial substring; or to 0 if none.</p>

<p>If the string is just one character in length, the Unicode numeric value is returned if it has one, or <code>undef</code> otherwise. If the optional scalar ref is passed, it would be set to 1 if the return is valid; or 0 if the return is <code>undef</code>. Note that the numeric value returned need not be a whole number. <code>num(&quot;\N{TIBETAN DIGIT HALF ZERO}&quot;)</code>, for example returns -0.5.</p>

<p>If the string is more than one character, <code>undef</code> is returned unless all its characters are decimal digits (that is, they would match <code>\d+</code>), from the same script. For example if you have an ASCII &#39;0&#39; and a Bengali &#39;3&#39;, mixed together, they aren&#39;t considered a valid number, and <code>undef</code> is returned. A further restriction is that the digits all have to be of the same form. A half-width digit mixed with a full-width one will return <code>undef</code>. The Arabic script has two sets of digits; <code>num</code> will return <code>undef</code> unless all the digits in the string come from the same set. In all cases, the optional scalar ref parameter is set to how long any valid initial substring of digits is; hence it will be set to the entire string length if the main return value is not <code>undef</code>.</p>

<p><code>num</code> errs on the side of safety, and there may be valid strings of decimal digits that it doesn&#39;t recognize. Note that Unicode defines a number of &quot;digit&quot; characters that aren&#39;t &quot;decimal digit&quot; characters. &quot;Decimal digits&quot; have the property that they have a positional value, i.e., there is a units position, a 10&#39;s position, a 100&#39;s, etc, AND they are arranged in Unicode in blocks of 10 contiguous code points. The Chinese digits, for example, are not in such a contiguous block, and so Unicode doesn&#39;t view them as decimal digits, but merely digits, and so <code>\d</code> will not match them. A single-character string containing one of these digits will have its decimal value returned by <code>num</code>, but any longer string containing only these digits will return <code>undef</code>.</p>

<p>Strings of multiple sub- and superscripts are not recognized as numbers. You can use either of the compatibility decompositions in Unicode::Normalize to change these into digits, and then call <code>num</code> on the result.</p>

<h2 id="prop_aliases()"><a class="permalink" href="./Unicode::UCD.html#prop_aliases()">#</a><a id="prop_aliases"></a><b>prop_aliases()</b></h2>

<pre><code>use Unicode::UCD &#39;prop_aliases&#39;;

my ($short_name, $full_name, @other_names) = prop_aliases(&quot;space&quot;);
my $same_full_name = prop_aliases(&quot;Space&quot;);     # Scalar context
my ($same_short_name) = prop_aliases(&quot;Space&quot;);  # gets 0th element
print &quot;The full name is $full_name\n&quot;;
print &quot;The short name is $short_name\n&quot;;
print &quot;The other aliases are: &quot;, join(&quot;, &quot;, @other_names), &quot;\n&quot;;

prints:
The full name is White_Space
The short name is WSpace
The other aliases are: Space</code></pre>

<p>Most Unicode properties have several synonymous names. Typically, there is at least a short name, convenient to type, and a long name that more fully describes the property, and hence is more easily understood.</p>

<p>If you know one name for a Unicode property, you can use <code>prop_aliases</code> to find either the long name (when called in scalar context), or a list of all of the names, somewhat ordered so that the short name is in the 0th element, the long name in the next element, and any other synonyms are in the remaining elements, in no particular order.</p>

<p>The long name is returned in a form nicely capitalized, suitable for printing.</p>

<p>The input parameter name is loosely matched, which means that white space, hyphens, and underscores are ignored (except for the trailing underscore in the old_form grandfathered-in <code>&quot;L_&quot;</code>, which is better written as <code>&quot;LC&quot;</code>, and both of which mean <code>General_Category=Cased Letter</code>).</p>

<p>If the name is unknown, <code>undef</code> is returned (or an empty list in list context). Note that Perl typically recognizes property names in regular expressions with an optional <code>&quot;Is_</code>&quot; (with or without the underscore) prefixed to them, such as <code>\p{isgc=punct}</code>. This function does not recognize those in the input, returning <code>undef</code>. Nor are they included in the output as possible synonyms.</p>

<p><code>prop_aliases</code> does know about the Perl extensions to Unicode properties, such as <code>Any</code> and <code>XPosixAlpha</code>, and the single form equivalents to Unicode properties such as <code>XDigit</code>, <code>Greek</code>, <code>In_Greek</code>, and <code>Is_Greek</code>. The final example demonstrates that the <code>&quot;Is_&quot;</code> prefix is recognized for these extensions; it is needed to resolve ambiguities. For example, <code>prop_aliases(&#39;lc&#39;)</code> returns the list <code>(lc, Lowercase_Mapping)</code>, but <code>prop_aliases(&#39;islc&#39;)</code> returns <code>(Is_LC, Cased_Letter)</code>. This is because <code>islc</code> is a Perl extension which is short for <code>General_Category=Cased Letter</code>. The lists returned for the Perl extensions will not include the <code>&quot;Is_&quot;</code> prefix (whether or not the input had it) unless needed to resolve ambiguities, as shown in the <code>&quot;islc&quot;</code> example, where the returned list had one element containing <code>&quot;Is_&quot;</code>, and the other without.</p>

<p>It is also possible for the reverse to happen: <code>prop_aliases(&#39;isc&#39;)</code> returns the list <code>(isc, ISO_Comment)</code>; whereas <code>prop_aliases(&#39;c&#39;)</code> returns <code>(C, Other)</code> (the latter being a Perl extension meaning <code>General_Category=Other</code>. <a href="perluniprops.html#Properties-accessible-through-Unicode%3A%3AUCD">&quot;Properties accessible through Unicode::UCD&quot; in perluniprops</a> lists the available forms, including which ones are discouraged from use.</p>

<p>Those discouraged forms are accepted as input to <code>prop_aliases</code>, but are not returned in the lists. <code>prop_aliases(&#39;isL&amp;&#39;)</code> and <code>prop_aliases(&#39;isL_&#39;)</code>, which are old synonyms for <code>&quot;Is_LC&quot;</code> and should not be used in new code, are examples of this. These both return <code>(Is_LC, Cased_Letter)</code>. Thus this function allows you to take a discouraged form, and find its acceptable alternatives. The same goes with single-form Block property equivalences. Only the forms that begin with <code>&quot;In_&quot;</code> are not discouraged; if you pass <code>prop_aliases</code> a discouraged form, you will get back the equivalent ones that begin with <code>&quot;In_&quot;</code>. It will otherwise look like a new-style block name (see. <a href="./Unicode::UCD.html#Old-style-versus-new-style-block-names">&quot;Old-style versus new-style block names&quot;</a>).</p>

<p><code>prop_aliases</code> does not know about any user-defined properties, and will return <code>undef</code> if called with one of those. Likewise for Perl internal properties, with the exception of &quot;Perl_Decimal_Digit&quot; which it does know about (and which is documented below in <a href="./Unicode::UCD.html#prop_invmap%28%29">&quot;prop_invmap()&quot;</a>).</p>

<h2 id="prop_values()"><a class="permalink" href="./Unicode::UCD.html#prop_values()">#</a><a id="prop_values"></a><b>prop_values()</b></h2>

<pre><code>  use Unicode::UCD &#39;prop_values&#39;;

  print &quot;AHex values are: &quot;, join(&quot;, &quot;, prop_values(&quot;AHex&quot;)),
                             &quot;\n&quot;;
prints:
  AHex values are: N, Y</code></pre>

<p>Some Unicode properties have a restricted set of legal values. For example, all binary properties are restricted to just <code>true</code> or <code>false</code>; and there are only a few dozen possible General Categories. Use <code>prop_values</code> to find out if a given property is one such, and if so, to get a list of the values:</p>

<pre><code>  print join &quot;, &quot;, prop_values(&quot;NFC_Quick_Check&quot;);
prints:
  M, N, Y</code></pre>

<p>If the property doesn&#39;t have such a restricted set, <code>undef</code> is returned.</p>

<p>There are usually several synonyms for each possible value. Use <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> to access those.</p>

<p>Case, white space, hyphens, and underscores are ignored in the input property name (except for the trailing underscore in the old-form grandfathered-in general category property value <code>&quot;L_&quot;</code>, which is better written as <code>&quot;LC&quot;</code>).</p>

<p>If the property name is unknown, <code>undef</code> is returned. Note that Perl typically recognizes property names in regular expressions with an optional <code>&quot;Is_</code>&quot; (with or without the underscore) prefixed to them, such as <code>\p{isgc=punct}</code>. This function does not recognize those in the property parameter, returning <code>undef</code>.</p>

<p>For the block property, new-style block names are returned (see <a href="./Unicode::UCD.html#Old-style-versus-new-style-block-names">&quot;Old-style versus new-style block names&quot;</a>).</p>

<p><code>prop_values</code> does not know about any user-defined properties, and will return <code>undef</code> if called with one of those.</p>

<h2 id="prop_value_aliases()"><a class="permalink" href="./Unicode::UCD.html#prop_value_aliases()">#</a><a id="prop_value_aliases"></a><b>prop_value_aliases()</b></h2>

<pre><code>  use Unicode::UCD &#39;prop_value_aliases&#39;;

  my ($short_name, $full_name, @other_names)
                                 = prop_value_aliases(&quot;Gc&quot;, &quot;Punct&quot;);
  my $same_full_name = prop_value_aliases(&quot;Gc&quot;, &quot;P&quot;);   # Scalar cntxt
  my ($same_short_name) = prop_value_aliases(&quot;Gc&quot;, &quot;P&quot;); # gets 0th
                                                         # element
  print &quot;The full name is $full_name\n&quot;;
  print &quot;The short name is $short_name\n&quot;;
  print &quot;The other aliases are: &quot;, join(&quot;, &quot;, @other_names), &quot;\n&quot;;

prints:
  The full name is Punctuation
  The short name is P
  The other aliases are: Punct</code></pre>

<p>Some Unicode properties have a restricted set of legal values. For example, all binary properties are restricted to just <code>true</code> or <code>false</code>; and there are only a few dozen possible General Categories.</p>

<p>You can use <a href="./Unicode::UCD.html#prop_values%28%29">&quot;prop_values()&quot;</a> to find out if a given property is one which has a restricted set of values, and if so, what those values are. But usually each value actually has several synonyms. For example, in Unicode binary properties, <i>truth</i> can be represented by any of the strings &quot;Y&quot;, &quot;Yes&quot;, &quot;T&quot;, or &quot;True&quot;; and the General Category &quot;Punctuation&quot; by that string, or &quot;Punct&quot;, or simply &quot;P&quot;.</p>

<p>Like property names, there is typically at least a short name for each such property-value, and a long name. If you know any name of the property-value (which you can get by <a href="./Unicode::UCD.html#prop_values%28%29">&quot;prop_values()&quot;</a>, you can use <code>prop_value_aliases</code>() to get the long name (when called in scalar context), or a list of all the names, with the short name in the 0th element, the long name in the next element, and any other synonyms in the remaining elements, in no particular order, except that any all-numeric synonyms will be last.</p>

<p>The long name is returned in a form nicely capitalized, suitable for printing.</p>

<p>Case, white space, hyphens, and underscores are ignored in the input parameters (except for the trailing underscore in the old-form grandfathered-in general category property value <code>&quot;L_&quot;</code>, which is better written as <code>&quot;LC&quot;</code>).</p>

<p>If either name is unknown, <code>undef</code> is returned. Note that Perl typically recognizes property names in regular expressions with an optional <code>&quot;Is_</code>&quot; (with or without the underscore) prefixed to them, such as <code>\p{isgc=punct}</code>. This function does not recognize those in the property parameter, returning <code>undef</code>.</p>

<p>If called with a property that doesn&#39;t have synonyms for its values, it returns the input value, possibly normalized with capitalization and underscores, but not necessarily checking that the input value is valid.</p>

<p>For the block property, new-style block names are returned (see <a href="./Unicode::UCD.html#Old-style-versus-new-style-block-names">&quot;Old-style versus new-style block names&quot;</a>).</p>

<p>To find the synonyms for single-forms, such as <code>\p{Any}</code>, use <a href="./Unicode::UCD.html#prop_aliases%28%29">&quot;prop_aliases()&quot;</a> instead.</p>

<p><code>prop_value_aliases</code> does not know about any user-defined properties, and will return <code>undef</code> if called with one of those.</p>

<h2 id="prop_invlist()"><a class="permalink" href="./Unicode::UCD.html#prop_invlist()">#</a><a id="prop_invlist"></a><b>prop_invlist()</b></h2>

<p><code>prop_invlist</code> returns an inversion list (described below) that defines all the code points for the binary Unicode property (or &quot;property=value&quot; pair) given by the input parameter string:</p>

<pre><code>use feature &#39;say&#39;;
use Unicode::UCD &#39;prop_invlist&#39;;
say join &quot;, &quot;, prop_invlist(&quot;Any&quot;);

prints:
0, 1114112</code></pre>

<p>If the input is unknown <code>undef</code> is returned in scalar context; an empty-list in list context. If the input is known, the number of elements in the list is returned if called in scalar context.</p>

<p><a href="perluniprops.html#Properties-accessible-through-%5Cp%7B%7D-and-%5CP%7B%7D">perluniprops</a> gives the list of properties that this function accepts, as well as all the possible forms for them (including with the optional &quot;Is_&quot; prefixes). (Except this function doesn&#39;t accept any Perl-internal properties, some of which are listed there.) This function uses the same loose or tighter matching rules for resolving the input property&#39;s name as is done for regular expressions. These are also specified in <a href="perluniprops.html#Properties-accessible-through-%5Cp%7B%7D-and-%5CP%7B%7D">perluniprops</a>. Examples of using the &quot;property=value&quot; form are:</p>

<pre><code>say join &quot;, &quot;, prop_invlist(&quot;Script_Extensions=Shavian&quot;);

prints:
66640, 66688

say join &quot;, &quot;, prop_invlist(&quot;ASCII_Hex_Digit=No&quot;);

prints:
0, 48, 58, 65, 71, 97, 103

say join &quot;, &quot;, prop_invlist(&quot;ASCII_Hex_Digit=Yes&quot;);

prints:
48, 58, 65, 71, 97, 103</code></pre>

<p>Inversion lists are a compact way of specifying Unicode property-value definitions. The 0th item in the list is the lowest code point that has the property-value. The next item (item [1]) is the lowest code point beyond that one that does NOT have the property-value. And the next item beyond that ([2]) is the lowest code point beyond that one that does have the property-value, and so on. Put another way, each element in the list gives the beginning of a range that has the property-value (for even numbered elements), or doesn&#39;t have the property-value (for odd numbered elements). The name for this data structure stems from the fact that each element in the list toggles (or inverts) whether the corresponding range is or isn&#39;t on the list.</p>

<p>In the final example above, the first ASCII Hex digit is code point 48, the character &quot;0&quot;, and all code points from it through 57 (a &quot;9&quot;) are ASCII hex digits. Code points 58 through 64 aren&#39;t, but 65 (an &quot;A&quot;) through 70 (an &quot;F&quot;) are, as are 97 (&quot;a&quot;) through 102 (&quot;f&quot;). 103 starts a range of code points that aren&#39;t ASCII hex digits. That range extends to infinity, which on your computer can be found in the variable <code>$Unicode::UCD::MAX_CP</code>. (This variable is as close to infinity as Perl can get on your platform, and may be too high for some operations to work; you may wish to use a smaller number for your purposes.)</p>

<p>Note that the inversion lists returned by this function can possibly include non-Unicode code points, that is anything above 0x10FFFF. Unicode properties are not defined on such code points. You might wish to change the output to not include these. Simply add 0x110000 at the end of the non-empty returned list if it isn&#39;t already that value; and pop that value if it is; like:</p>

<pre><code>my @list = prop_invlist(&quot;foo&quot;);
if (@list) {
    if ($list[-1] == 0x110000) {
        pop @list;  # Defeat the turning on for above Unicode
    }
    else {
        push @list, 0x110000; # Turn off for above Unicode
    }
}</code></pre>

<p>It is a simple matter to expand out an inversion list to a full list of all code points that have the property-value:</p>

<pre><code>my @invlist = prop_invlist($property_name);
die &quot;empty&quot; unless @invlist;
my @full_list;
for (my $i = 0; $i &lt; @invlist; $i += 2) {
   my $upper = ($i + 1) &lt; @invlist
               ? $invlist[$i+1] - 1      # In range
               : $Unicode::UCD::MAX_CP;  # To infinity.
   for my $j ($invlist[$i] .. $upper) {
       push @full_list, $j;
   }
}</code></pre>

<p><code>prop_invlist</code> does not know about any user-defined nor Perl internal-only properties, and will return <code>undef</code> if called with one of those.</p>

<p>The <a href="./Unicode::UCD.html#search_invlist%28%29">&quot;search_invlist()&quot;</a> function is provided for finding a code point within an inversion list.</p>

<h2 id="prop_invmap()"><a class="permalink" href="./Unicode::UCD.html#prop_invmap()">#</a><a id="prop_invmap"></a><b>prop_invmap()</b></h2>

<pre><code>use Unicode::UCD &#39;prop_invmap&#39;;
my ($list_ref, $map_ref, $format, $default)
                                     = prop_invmap(&quot;General Category&quot;);</code></pre>

<p><code>prop_invmap</code> is used to get the complete mapping definition for a property, in the form of an inversion map. An inversion map consists of two parallel arrays. One is an ordered list of code points that mark range beginnings, and the other gives the value (or mapping) that all code points in the corresponding range have.</p>

<p><code>prop_invmap</code> is called with the name of the desired property. The name is loosely matched, meaning that differences in case, white-space, hyphens, and underscores are not meaningful (except for the trailing underscore in the old-form grandfathered-in property <code>&quot;L_&quot;</code>, which is better written as <code>&quot;LC&quot;</code>, or even better, <code>&quot;Gc=LC&quot;</code>).</p>

<p>Many Unicode properties have more than one name (or alias). <code>prop_invmap</code> understands all of these, including Perl extensions to them. Ambiguities are resolved as described above for <a href="./Unicode::UCD.html#prop_aliases%28%29">&quot;prop_aliases()&quot;</a> (except if a property has both a complete mapping, and a binary <code>Y</code>/<code>N</code> mapping, then specifying the property name prefixed by <code>&quot;is&quot;</code> causes the binary one to be returned). The Perl internal property &quot;Perl_Decimal_Digit, described below, is also accepted. An empty list is returned if the property name is unknown. See <a href="perluniprops.html#Properties-accessible-through-Unicode%3A%3AUCD">&quot;Properties accessible through Unicode::UCD&quot; in perluniprops</a> for the properties acceptable as inputs to this function.</p>

<p>It is a fatal error to call this function except in list context.</p>

<p>In addition to the two arrays that form the inversion map, <code>prop_invmap</code> returns two other values; one is a scalar that gives some details as to the format of the entries of the map array; the other is a default value, useful in maps whose format name begins with the letter <code>&quot;a&quot;</code>, as described <a href="./Unicode::UCD.html#a">below in its subsection</a>; and for specialized purposes, such as converting to another data structure, described at the end of this main section.</p>

<p>This means that <code>prop_invmap</code> returns a 4 element list. For example,</p>

<pre><code>my ($blocks_ranges_ref, $blocks_maps_ref, $format, $default)
                                                = prop_invmap(&quot;Block&quot;);</code></pre>

<p>In this call, the two arrays will be populated as shown below (for Unicode 6.0):</p>

<pre><code>Index  @blocks_ranges  @blocks_maps
  0        0x0000      Basic Latin
  1        0x0080      Latin-1 Supplement
  2        0x0100      Latin Extended-A
  3        0x0180      Latin Extended-B
  4        0x0250      IPA Extensions
  5        0x02B0      Spacing Modifier Letters
  6        0x0300      Combining Diacritical Marks
  7        0x0370      Greek and Coptic
  8        0x0400      Cyrillic
 ...
233        0x2B820     No_Block
234        0x2F800     CJK Compatibility Ideographs Supplement
235        0x2FA20     No_Block
236        0xE0000     Tags
237        0xE0080     No_Block
238        0xE0100     Variation Selectors Supplement
239        0xE01F0     No_Block
240        0xF0000     Supplementary Private Use Area-A
241        0x100000    Supplementary Private Use Area-B
242        0x110000    No_Block</code></pre>

<p>The first line (with Index [0]) means that the value for code point 0 is &quot;Basic Latin&quot;. The entry &quot;0x0080&quot; in the @blocks_ranges column in the second line means that the value from the first line, &quot;Basic Latin&quot;, extends to all code points in the range from 0 up to but not including 0x0080, that is, through 127. In other words, the code points from 0 to 127 are all in the &quot;Basic Latin&quot; block. Similarly, all code points in the range from 0x0080 up to (but not including) 0x0100 are in the block named &quot;Latin-1 Supplement&quot;, etc. (Notice that the return is the old-style block names; see <a href="./Unicode::UCD.html#Old-style-versus-new-style-block-names">&quot;Old-style versus new-style block names&quot;</a>).</p>

<p>The final line (with Index [242]) means that the value for all code points above the legal Unicode maximum code point have the value &quot;No_Block&quot;, which is the term Unicode uses for a non-existing block.</p>

<p>The arrays completely specify the mappings for all possible code points. The final element in an inversion map returned by this function will always be for the range that consists of all the code points that aren&#39;t legal Unicode, but that are expressible on the platform. (That is, it starts with code point 0x110000, the first code point above the legal Unicode maximum, and extends to infinity.) The value for that range will be the same that any typical unassigned code point has for the specified property. (Certain unassigned code points are not &quot;typical&quot;; for example the non-character code points, or those in blocks that are to be written right-to-left. The above-Unicode range&#39;s value is not based on these atypical code points.) It could be argued that, instead of treating these as unassigned Unicode code points, the value for this range should be <code>undef</code>. If you wish, you can change the returned arrays accordingly.</p>

<p>The maps for almost all properties are simple scalars that should be interpreted as-is. These values are those given in the Unicode-supplied data files, which may be inconsistent as to capitalization and as to which synonym for a property-value is given. The results may be normalized by using the <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> function.</p>

<p>There are exceptions to the simple scalar maps. Some properties have some elements in their map list that are themselves lists of scalars; and some special strings are returned that are not to be interpreted as-is. Element [2] (placed into <code>$format</code> in the example above) of the returned four element list tells you if the map has any of these special elements or not, as follows:</p>

<dl>

<dt id="s"><a class="permalink" href="./Unicode::UCD.html#s">#</a><b><code>s</code></b></dt>
<dd>

<p>means all the elements of the map array are simple scalars, with no special elements. Almost all properties are like this, like the <code>block</code> example above.</p>

</dd>
<dt id="sl"><a class="permalink" href="./Unicode::UCD.html#sl">#</a><b><code>sl</code></b></dt>
<dd>

<p>means that some of the map array elements have the form given by <code>&quot;s&quot;</code>, and the rest are lists of scalars. For example, here is a portion of the output of calling <code>prop_invmap</code>() with the &quot;Script Extensions&quot; property:</p>

<pre><code>@scripts_ranges  @scripts_maps
     ...
     0x0953      Devanagari
     0x0964      [ Bengali, Devanagari, Gurumukhi, Oriya ]
     0x0966      Devanagari
     0x0970      Common</code></pre>

<p>Here, the code points 0x964 and 0x965 are both used in Bengali, Devanagari, Gurmukhi, and Oriya, but no other scripts.</p>

<p>The Name_Alias property is also of this form. But each scalar consists of two components: 1) the name, and 2) the type of alias this is. They are separated by a colon and a space. In Unicode 6.1, there are several alias types:</p>

<dl>

<dt id="correction"><a class="permalink" href="./Unicode::UCD.html#correction">#</a><code>correction</code></dt>
<dd>

<p>indicates that the name is a corrected form for the original name (which remains valid) for the same code point.</p>

</dd>
<dt id="control"><a class="permalink" href="./Unicode::UCD.html#control">#</a><code>control</code></dt>
<dd>

<p>adds a new name for a control character.</p>

</dd>
<dt id="alternate"><a class="permalink" href="./Unicode::UCD.html#alternate">#</a><code>alternate</code></dt>
<dd>

<p>is an alternate name for a character</p>

</dd>
<dt id="figment"><a class="permalink" href="./Unicode::UCD.html#figment">#</a><code>figment</code></dt>
<dd>

<p>is a name for a character that has been documented but was never in any actual standard.</p>

</dd>
<dt id="abbreviation"><a class="permalink" href="./Unicode::UCD.html#abbreviation">#</a><code>abbreviation</code></dt>
<dd>

<p>is a common abbreviation for a character</p>

</dd>
</dl>

<p>The lists are ordered (roughly) so the most preferred names come before less preferred ones.</p>

<p>For example,</p>

<pre><code>@aliases_ranges        @alias_maps
   ...
   0x009E        [ &#39;PRIVACY MESSAGE: control&#39;, &#39;PM: abbreviation&#39; ]
   0x009F        [ &#39;APPLICATION PROGRAM COMMAND: control&#39;,
                   &#39;APC: abbreviation&#39;
                 ]
   0x00A0        &#39;NBSP: abbreviation&#39;
   0x00A1        &quot;&quot;
   0x00AD        &#39;SHY: abbreviation&#39;
   0x00AE        &quot;&quot;
   0x01A2        &#39;LATIN CAPITAL LETTER GHA: correction&#39;
   0x01A3        &#39;LATIN SMALL LETTER GHA: correction&#39;
   0x01A4        &quot;&quot;
   ...</code></pre>

<p>A map to the empty string means that there is no alias defined for the code point.</p>

</dd>
<dt id="a"><a class="permalink" href="./Unicode::UCD.html#a">#</a><b><code>a</code></b></dt>
<dd>

<p>is like <code>&quot;s&quot;</code> in that all the map array elements are scalars, but here they are restricted to all being integers, and some have to be adjusted (hence the name <code>&quot;a&quot;</code>) to get the correct result. For example, in:</p>

<pre><code>my ($uppers_ranges_ref, $uppers_maps_ref, $format, $default)
                         = prop_invmap(&quot;Simple_Uppercase_Mapping&quot;);</code></pre>

<p>the returned arrays look like this:</p>

<pre><code>@$uppers_ranges_ref    @$uppers_maps_ref   Note
      0                      0
     97                     65          &#39;a&#39; maps to &#39;A&#39;, b =&gt; B ...
    123                      0
    181                    924          MICRO SIGN =&gt; Greek Cap MU
    182                      0
    ...</code></pre>

<p>and <code>$default</code> is 0.</p>

<p>Let&#39;s start with the second line. It says that the uppercase of code point 97 is 65; or <code>uc(&quot;a&quot;)</code> == &quot;A&quot;. But the line is for the entire range of code points 97 through 122. To get the mapping for any code point in this range, you take the offset it has from the beginning code point of the range, and add that to the mapping for that first code point. So, the mapping for 122 (&quot;z&quot;) is derived by taking the offset of 122 from 97 (=25) and adding that to 65, yielding 90 (&quot;z&quot;). Likewise for everything in between.</p>

<p>Requiring this simple adjustment allows the returned arrays to be significantly smaller than otherwise, up to a factor of 10, speeding up searching through them.</p>

<p>Ranges that map to <code>$default</code>, <code>&quot;0&quot;</code>, behave somewhat differently. For these, each code point maps to itself. So, in the first line in the example, <span style="white-space: nowrap;"><code>ord(uc(chr(0)))</code></span> is 0, <span style="white-space: nowrap;"><code>ord(uc(chr(1)))</code></span> is 1, .. <span style="white-space: nowrap;"><code>ord(uc(chr(96)))</code></span> is 96.</p>

</dd>
<dt id="al"><a class="permalink" href="./Unicode::UCD.html#al">#</a><b><code>al</code></b></dt>
<dd>

<p>means that some of the map array elements have the form given by <code>&quot;a&quot;</code>, and the rest are ordered lists of code points. For example, in:</p>

<pre><code>my ($uppers_ranges_ref, $uppers_maps_ref, $format, $default)
                                = prop_invmap(&quot;Uppercase_Mapping&quot;);</code></pre>

<p>the returned arrays look like this:</p>

<pre><code>@$uppers_ranges_ref    @$uppers_maps_ref
      0                      0
     97                     65
    123                      0
    181                    924
    182                      0
    ...
   0x0149              [ 0x02BC 0x004E ]
   0x014A                    0
   0x014B                  330
    ...</code></pre>

<p>This is the full Uppercase_Mapping property (as opposed to the Simple_Uppercase_Mapping given in the example for format <code>&quot;a&quot;</code>). The only difference between the two in the ranges shown is that the code point at 0x0149 (LATIN SMALL LETTER N PRECEDED BY APOSTROPHE) maps to a string of two characters, 0x02BC (MODIFIER LETTER APOSTROPHE) followed by 0x004E (LATIN CAPITAL LETTER N).</p>

<p>No adjustments are needed to entries that are references to arrays; each such entry will have exactly one element in its range, so the offset is always 0.</p>

<p>The fourth (index [3]) element (<code>$default</code>) in the list returned for this format is 0.</p>

</dd>
<dt id="ae"><a class="permalink" href="./Unicode::UCD.html#ae">#</a><b><code>ae</code></b></dt>
<dd>

<p>This is like <code>&quot;a&quot;</code>, but some elements are the empty string, and should not be adjusted. The one internal Perl property accessible by <code>prop_invmap</code> is of this type: &quot;Perl_Decimal_Digit&quot; returns an inversion map which gives the numeric values that are represented by the Unicode decimal digit characters. Characters that don&#39;t represent decimal digits map to the empty string, like so:</p>

<pre><code>@digits    @values
0x0000       &quot;&quot;
0x0030        0
0x003A:      &quot;&quot;
0x0660:       0
0x066A:      &quot;&quot;
0x06F0:       0
0x06FA:      &quot;&quot;
0x07C0:       0
0x07CA:      &quot;&quot;
0x0966:       0
...</code></pre>

<p>This means that the code points from 0 to 0x2F do not represent decimal digits; the code point 0x30 (DIGIT ZERO) represents 0; code point 0x31, (DIGIT ONE), represents 0+1-0 = 1; ... code point 0x39, (DIGIT NINE), represents 0+9-0 = 9; ... code points 0x3A through 0x65F do not represent decimal digits; 0x660 (ARABIC-INDIC DIGIT ZERO), represents 0; ... 0x07C1 (NKO DIGIT ONE), represents 0+1-0 = 1 ...</p>

<p>The fourth (index [3]) element (<code>$default</code>) in the list returned for this format is the empty string.</p>

</dd>
<dt id="ale"><a class="permalink" href="./Unicode::UCD.html#ale">#</a><b><code>ale</code></b></dt>
<dd>

<p>is a combination of the <code>&quot;al&quot;</code> type and the <code>&quot;ae&quot;</code> type. Some of the map array elements have the forms given by <code>&quot;al&quot;</code>, and the rest are the empty string. The property <code>NFKC_Casefold</code> has this form. An example slice is:</p>

<pre><code>@$ranges_ref  @$maps_ref         Note
   ...
  0x00AA       97                FEMININE ORDINAL INDICATOR =&gt; &#39;a&#39;
  0x00AB        0
  0x00AD                         SOFT HYPHEN =&gt; &quot;&quot;
  0x00AE        0
  0x00AF     [ 0x0020, 0x0304 ]  MACRON =&gt; SPACE . COMBINING MACRON
  0x00B0        0
  ...</code></pre>

<p>The fourth (index [3]) element (<code>$default</code>) in the list returned for this format is 0.</p>

</dd>
<dt id="ar"><a class="permalink" href="./Unicode::UCD.html#ar">#</a><b><code>ar</code></b></dt>
<dd>

<p>means that all the elements of the map array are either rational numbers or the string <code>&quot;NaN&quot;</code>, meaning &quot;Not a Number&quot;. A rational number is either an integer, or two integers separated by a solidus (<code>&quot;/&quot;</code>). The second integer represents the denominator of the division implied by the solidus, and is actually always positive, so it is guaranteed not to be 0 and to not be signed. When the element is a plain integer (without the solidus), it may need to be adjusted to get the correct value by adding the offset, just as other <code>&quot;a&quot;</code> properties. No adjustment is needed for fractions, as the range is guaranteed to have just a single element, and so the offset is always 0.</p>

<p>If you want to convert the returned map to entirely scalar numbers, you can use something like this:</p>

<pre><code>my ($invlist_ref, $invmap_ref, $format) = prop_invmap($property);
if ($format &amp;&amp; $format eq &quot;ar&quot;) {
    map { $_ = eval $_ if $_ ne &#39;NaN&#39; } @$map_ref;
}</code></pre>

<p>Here&#39;s some entries from the output of the property &quot;Nv&quot;, which has format <code>&quot;ar&quot;</code>.</p>

<pre><code>@numerics_ranges  @numerics_maps       Note
       0x00           &quot;NaN&quot;
       0x30             0           DIGIT 0 .. DIGIT 9
       0x3A           &quot;NaN&quot;
       0xB2             2           SUPERSCRIPTs 2 and 3
       0xB4           &quot;NaN&quot;
       0xB9             1           SUPERSCRIPT 1
       0xBA           &quot;NaN&quot;
       0xBC            1/4          VULGAR FRACTION 1/4
       0xBD            1/2          VULGAR FRACTION 1/2
       0xBE            3/4          VULGAR FRACTION 3/4
       0xBF           &quot;NaN&quot;
       0x660            0           ARABIC-INDIC DIGIT ZERO .. NINE
       0x66A          &quot;NaN&quot;</code></pre>

<p>The fourth (index [3]) element (<code>$default</code>) in the list returned for this format is <code>&quot;NaN&quot;</code>.</p>

</dd>
<dt id="n"><a class="permalink" href="./Unicode::UCD.html#n">#</a><b><code>n</code></b></dt>
<dd>

<p>means the Name property. All the elements of the map array are simple scalars, but some of them contain special strings that require more work to get the actual name.</p>

<p>Entries such as:</p>

<pre><code class="plaintext">CJK UNIFIED IDEOGRAPH-&lt;code point&gt;</code></pre>

<p>mean that the name for the code point is &quot;CJK UNIFIED IDEOGRAPH-&quot; with the code point (expressed in hexadecimal) appended to it, like &quot;CJK UNIFIED IDEOGRAPH-3403&quot; (similarly for <span style="white-space: nowrap;"><code>CJK COMPATIBILITY IDEOGRAPH-&lt;code point&gt;</code></span>).</p>

<p>Also, entries like</p>

<pre><code class="plaintext">&lt;hangul syllable&gt;</code></pre>

<p>means that the name is algorithmically calculated. This is easily done by the function <a href="charnames.html#charnames%3A%3Aviacode%28code%29">&quot;charnames::viacode(code)&quot; in charnames</a>.</p>

<p>Note that for control characters (<code>Gc=cc</code>), Unicode&#39;s data files have the string &quot;<code>&lt;control&gt;</code>&quot;, but the real name of each of these characters is the empty string. This function returns that real name, the empty string. (There are names for these characters, but they are considered aliases, not the Name property name, and are contained in the <code>Name_Alias</code> property.)</p>

</dd>
<dt id="ad"><a class="permalink" href="./Unicode::UCD.html#ad">#</a><b><code>ad</code></b></dt>
<dd>

<p>means the Decomposition_Mapping property. This property is like <code>&quot;al&quot;</code> properties, except that one of the scalar elements is of the form:</p>

<pre><code class="plaintext">&lt;hangul syllable&gt;</code></pre>

<p>This signifies that this entry should be replaced by the decompositions for all the code points whose decomposition is algorithmically calculated. (All of them are currently in one range and no others outside the range are likely to ever be added to Unicode; the <code>&quot;n&quot;</code> format has this same entry.) These can be generated via the function <a href="./Unicode::Normalize.html">Unicode::Normalize::NFD()</a>.</p>

<p>Note that the mapping is the one that is specified in the Unicode data files, and to get the final decomposition, it may need to be applied recursively. Unicode in fact discourages use of this property except internally in implementations of the Unicode Normalization Algorithm.</p>

<p>The fourth (index [3]) element (<code>$default</code>) in the list returned for this format is 0.</p>

</dd>
</dl>

<p>Note that a format begins with the letter &quot;a&quot; if and only the property it is for requires adjustments by adding the offsets in multi-element ranges. For all these properties, an entry should be adjusted only if the map is a scalar which is an integer. That is, it must match the regular expression:</p>

<pre><code class="plaintext">/ ^ -? \d+ $ /xa</code></pre>

<p>Further, the first element in a range never needs adjustment, as the adjustment would be just adding 0.</p>

<p>A binary search such as that provided by <a href="./Unicode::UCD.html#search_invlist%28%29">&quot;search_invlist()&quot;</a>, can be used to quickly find a code point in the inversion list, and hence its corresponding mapping.</p>

<p>The final, fourth element (index [3], assigned to <code>$default</code> in the &quot;block&quot; example) in the four element list returned by this function is used with the <code>&quot;a&quot;</code> format types; it may also be useful for applications that wish to convert the returned inversion map data structure into some other, such as a hash. It gives the mapping that most code points map to under the property. If you establish the convention that any code point not explicitly listed in your data structure maps to this value, you can potentially make your data structure much smaller. As you construct your data structure from the one returned by this function, simply ignore those ranges that map to this value. For example, to convert to the data structure searchable by <a href="./Unicode::UCD.html#charinrange%28%29">&quot;charinrange()&quot;</a>, you can follow this recipe for properties that don&#39;t require adjustments:</p>

<pre><code>my ($list_ref, $map_ref, $format, $default) = prop_invmap($property);
my @range_list;

# Look at each element in the list, but the -2 is needed because we
# look at $i+1 in the loop, and the final element is guaranteed to map
# to $default by prop_invmap(), so we would skip it anyway.
for my $i (0 .. @$list_ref - 2) {
   next if $map_ref-&gt;[$i] eq $default;
   push @range_list, [ $list_ref-&gt;[$i],
                       $list_ref-&gt;[$i+1],
                       $map_ref-&gt;[$i]
                     ];
}

print charinrange(\@range_list, $code_point), &quot;\n&quot;;</code></pre>

<p>With this, <code>charinrange()</code> will return <code>undef</code> if its input code point maps to <code>$default</code>. You can avoid this by omitting the <code>next</code> statement, and adding a line after the loop to handle the final element of the inversion map.</p>

<p>Similarly, this recipe can be used for properties that do require adjustments:</p>

<pre><code>for my $i (0 .. @$list_ref - 2) {
   next if $map_ref-&gt;[$i] eq $default;

   # prop_invmap() guarantees that if the mapping is to an array, the
   # range has just one element, so no need to worry about adjustments.
   if (ref $map_ref-&gt;[$i]) {
       push @range_list,
                  [ $list_ref-&gt;[$i], $list_ref-&gt;[$i], $map_ref-&gt;[$i] ];
   }
   else {  # Otherwise each element is actually mapped to a separate
           # value, so the range has to be split into single code point
           # ranges.

       my $adjustment = 0;

       # For each code point that gets mapped to something...
       for my $j ($list_ref-&gt;[$i] .. $list_ref-&gt;[$i+1] -1 ) {

           # ... add a range consisting of just it mapping to the
           # original plus the adjustment, which is incremented for the
           # next time through the loop, as the offset increases by 1
           # for each element in the range
           push @range_list,
                            [ $j, $j, $map_ref-&gt;[$i] + $adjustment++ ];
       }
   }
}</code></pre>

<p>Note that the inversion maps returned for the <code>Case_Folding</code> and <code>Simple_Case_Folding</code> properties do not include the Turkic-locale mappings. Use <a href="./Unicode::UCD.html#casefold%28%29">&quot;casefold()&quot;</a> for these.</p>

<p><code>prop_invmap</code> does not know about any user-defined properties, and will return <code>undef</code> if called with one of those.</p>

<p>The returned values for the Perl extension properties, such as <code>Any</code> and <code>Greek</code> are somewhat misleading. The values are either <code>&quot;Y&quot;</code> or <code>&quot;N</code>&quot;. All Unicode properties are bipartite, so you can actually use the <code>&quot;Y&quot;</code> or <code>&quot;N</code>&quot; in a Perl regular expression for these, like <code>qr/\p{ID_Start=Y/}</code> or <code>qr/\p{Upper=N/}</code>. But the Perl extensions aren&#39;t specified this way, only like <code>/qr/\p{Any}</code>, <i>etc</i>. You can&#39;t actually use the <code>&quot;Y&quot;</code> and <code>&quot;N</code>&quot; in them.</p>

<h3 id="Getting-every-available-name"><a class="permalink" href="./Unicode::UCD.html#Getting-every-available-name">#</a><a id="Getting"></a>Getting every available name</h3>

<p>Instead of reading the Unicode Database directly from files, as you were able to do for a long time, you are encouraged to use the supplied functions. So, instead of reading <code>Name.pl</code> directly, which changed formats in 5.32, and may do so again without notice in the future or even disappear, you ought to use <a href="./Unicode::UCD.html#prop_invmap%28%29">&quot;prop_invmap()&quot;</a> like this:</p>

<pre><code>my (%name, %cp, %cps, $n);
# All codepoints
foreach my $cat (qw( Name Name_Alias )) {
    my ($codepoints, $names, $format, $default) = prop_invmap($cat);
    # $format =&gt; &quot;n&quot;, $default =&gt; &quot;&quot;
    foreach my $i (0 .. @$codepoints - 2) {
        my ($cp, $n) = ($codepoints-&gt;[$i], $names-&gt;[$i]);
        # If $n is a ref, the same codepoint has multiple names
        foreach my $name (ref $n ? @$n : $n) {
            $name{$cp} //= $name;
            $cp{$name} //= $cp;
        }
    }
}
# Named sequences
{   my %ns = namedseq();
    foreach my $name (sort { $ns{$a} cmp $ns{$b} } keys %ns) {
        $cp{$name} //= [ map { ord } split &quot;&quot; =&gt; $ns{$name} ];
    }
}</code></pre>

<h2 id="search_invlist()"><a class="permalink" href="./Unicode::UCD.html#search_invlist()">#</a><a id="search_invlist"></a><b>search_invlist()</b></h2>

<pre><code>use Unicode::UCD qw(prop_invmap prop_invlist);
use Unicode::UCD &#39;search_invlist&#39;;

my @invlist = prop_invlist($property_name);
print $code_point, ((search_invlist(\@invlist, $code_point) // -1) % 2)
                    ? &quot; isn&#39;t&quot;
                    : &quot; is&quot;,
    &quot; in $property_name\n&quot;;

my ($blocks_ranges_ref, $blocks_map_ref) = prop_invmap(&quot;Block&quot;);
my $index = search_invlist($blocks_ranges_ref, $code_point);
print &quot;$code_point is in block &quot;, $blocks_map_ref-&gt;[$index], &quot;\n&quot;;</code></pre>

<p><code>search_invlist</code> is used to search an inversion list returned by <code>prop_invlist</code> or <code>prop_invmap</code> for a particular <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a>. <code>undef</code> is returned if the code point is not found in the inversion list (this happens only when it is not a legal <a href="./Unicode::UCD.html#code-point-argument">&quot;code point argument&quot;</a>, or is less than the list&#39;s first element). A warning is raised in the first instance.</p>

<p>Otherwise, it returns the index into the list of the range that contains the code point.; that is, find <code>i</code> such that</p>

<pre><code class="plaintext">list[i]&lt;= code_point &lt; list[i+1].</code></pre>

<p>As explained in <a href="./Unicode::UCD.html#prop_invlist%28%29">&quot;prop_invlist()&quot;</a>, whether a code point is in the list or not depends on if the index is even (in) or odd (not in). And as explained in <a href="./Unicode::UCD.html#prop_invmap%28%29">&quot;prop_invmap()&quot;</a>, the index is used with the returned parallel array to find the mapping.</p>

<h2 id="Unicode::UCD::UnicodeVersion"><a class="permalink" href="./Unicode::UCD.html#Unicode::UCD::UnicodeVersion">#</a><a id="Unicode"></a>Unicode::UCD::UnicodeVersion</h2>

<p>This returns the version of the Unicode Character Database, in other words, the version of the Unicode standard the database implements. The version is a string of numbers delimited by dots (<code>&#39;.&#39;</code>).</p>

<h2 id="Blocks-versus-Scripts"><a class="permalink" href="./Unicode::UCD.html#Blocks-versus-Scripts">#</a><a id="Blocks"></a><b>Blocks versus Scripts</b></h2>

<p>The difference between a block and a script is that scripts are closer to the linguistic notion of a set of code points required to represent languages, while block is more of an artifact of the Unicode code point numbering and separation into blocks of consecutive code points (so far the size of a block is some multiple of 16, like 128 or 256).</p>

<p>For example the Latin <b>script</b> is spread over several <b>blocks</b>, such as <code>Basic Latin</code>, <code>Latin 1 Supplement</code>, <code>Latin Extended-A</code>, and <code>Latin Extended-B</code>. On the other hand, the Latin script does not contain all the characters of the <code>Basic Latin</code> block (also known as ASCII): it includes only the letters, and not, for example, the digits nor the punctuation.</p>

<p>For blocks see <a href="http://www.unicode.org/Public/UNIDATA/Blocks.txt">http://www.unicode.org/Public/UNIDATA/Blocks.txt</a></p>

<p>For scripts see UTR #24: <a href="http://www.unicode.org/unicode/reports/tr24/">http://www.unicode.org/unicode/reports/tr24/</a></p>

<h2 id="Matching-Scripts-and-Blocks"><a class="permalink" href="./Unicode::UCD.html#Matching-Scripts-and-Blocks">#</a><a id="Matching"></a><b>Matching Scripts and Blocks</b></h2>

<p>Scripts are matched with the regular-expression construct <code>\p{...}</code> (e.g. <code>\p{Tibetan}</code> matches characters of the Tibetan script), while <code>\p{Blk=...}</code> is used for blocks (e.g. <code>\p{Blk=Tibetan}</code> matches any of the 256 code points in the Tibetan block).</p>

<h2 id="Old-style-versus-new-style-block-names"><a class="permalink" href="./Unicode::UCD.html#Old-style-versus-new-style-block-names">#</a><a id="Old"></a>Old-style versus new-style block names</h2>

<p>Unicode publishes the names of blocks in two different styles, though the two are equivalent under Unicode&#39;s loose matching rules.</p>

<p>The original style uses blanks and hyphens in the block names (except for <code>No_Block</code>), like so:</p>

<pre><code class="plaintext">Miscellaneous Mathematical Symbols-B</code></pre>

<p>The newer style replaces these with underscores, like this:</p>

<pre><code class="plaintext">Miscellaneous_Mathematical_Symbols_B</code></pre>

<p>This newer style is consistent with the values of other Unicode properties. To preserve backward compatibility, all the functions in Unicode::UCD that return block names (except as noted) return the old-style ones. <a href="./Unicode::UCD.html#prop_value_aliases%28%29">&quot;prop_value_aliases()&quot;</a> returns the new-style and can be used to convert from old-style to new-style:</p>

<pre><code>my $new_style = prop_values_aliases(&quot;block&quot;, $old_style);</code></pre>

<p>Perl also has single-form extensions that refer to blocks, <code>In_Cyrillic</code>, meaning <code>Block=Cyrillic</code>. These have always been written in the new style.</p>

<p>To convert from new-style to old-style, follow this recipe:</p>

<pre><code>$old_style = charblock((prop_invlist(&quot;block=$new_style&quot;))[0]);</code></pre>

<p>(which finds the range of code points in the block using <code>prop_invlist</code>, gets the lower end of the range (0th element) and then looks up the old name for its block using <code>charblock</code>).</p>

<p>Note that starting in Unicode 6.1, many of the block names have shorter synonyms. These are always given in the new style.</p>

<h2 id="Use-with-older-Unicode-versions"><a class="permalink" href="./Unicode::UCD.html#Use-with-older-Unicode-versions">#</a><a id="Use"></a>Use with older Unicode versions</h2>

<p>The functions in this module work as well as can be expected when used on earlier Unicode versions. But, obviously, they use the available data from that Unicode version. For example, if the Unicode version predates the definition of the script property (Unicode 3.1), then any function that deals with scripts is going to return <code>undef</code> for the script portion of the return value.</p>

<h1 id="AUTHOR"><a class="permalink" href="./Unicode::UCD.html#AUTHOR">#</a>AUTHOR</h1>

<p>Jarkko Hietaniemi. Now maintained by perl5 porters.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
